<?php
//载入框架
include $_SERVER['DOCUMENT_ROOT'].'/procjson/php/autoload.php';

//前端table与db.table映射
\procjson\app::$db_tables=array("user"=>"xczx.wh_user_t");

//配置开放模型
\procjson\app::$model_open=array(
    "user"=>array(
        "login"=>array(
            "command"=>"login",
            "table"=>"user",
            "clause"=>array("s_no","s_pwd"),
            "id"=>"s_no",
        )
    )
);

//token绑定app
\procjson\app::$auth_table=array(
    "table"=>"xczx.wh_level_t","id"=>"s_no","appid"=>"i_type"
);
\procjson\app::$appid=array('10','12');

//PDO配置
//procJSON::$PDO='';
\procjson\app::$user='whhr';
\procjson\app::$pwd='ADMINwhhr123';

//JWT的有效期
\procjson\app::$exp=strtotime("+4 hours",time());
//JWT的加密值
\procjson\app::$keystr="WHSS";
\procjson\app::$keyint="1";

//运行procJSON
\procjson\app::Run();
?>